$(document).ready(function() {
    /* 兼容min-width */
    $(window).resize(function(event) {
        var win_width = $(this).width();
        if(win_width<=960){
            $('.global_main').css({
                'width': '930px',
                'padding': '0px 15px'
            });
            $('html').css('overflow-x', 'scroll');
        }else{
            $('.global_main').css('width', '97%');
            $('html').css('overflow-x', 'hidden');
            $('html').scrollLeft(0);
        }
    });

    var win_width = $(window).width();
    if(win_width<=960){
        $('.global_main').css({
            'width': '930px',
            'padding': '0px 15px'
        });
        $('html').css('overflow-x', 'scroll');
    }else{
        $('.global_main').css('width', '97%');
        $('html').css('overflow-x', 'hidden');
        $('html').scrollLeft(0);
    }

    /* 去除a链接以及button按钮虚线框 */
    $('button,a,input').attr('hidefocus','true');
});